package com.oa.ylms.apps.business.news;

import java.util.List;

import com.oa.ylms.apps.entity.news.NewsCategoryValue;


public interface INewsCategoryService {
	
	public List<NewsCategoryValue> queryAllCategory() throws Exception;
	
	public List<NewsCategoryValue> queryCategoryByStates(Integer states) throws Exception;
	
	public NewsCategoryValue queryCategoryById(int categoryId) throws Exception;

	public int addNewsCategory(String categoryName,int states) throws Exception;
	
	public boolean deleteNewsCategory(int categoryId ) throws Exception;

	public boolean modifyNewsCategory(int categoryId,String categoryName,int states) throws Exception;

	public boolean toDisable(int categoryId) throws Exception;
	
	public boolean toEnable(int categoryId) throws Exception;
}
